Ext.onReady(function() {
			var changePasswordForm = new Ext.FormPanel({
						xtype : 'form',
						baseCls : "x-plain",
						labelWidth:80,
						labelAlign:'right',
						buttonAlign:'center',
						bodyStyle : "padding:10px;",
						defaults : {
							xtype : "textfield",
							allowBlank:false,
							width:100
						},
						items : [{
									name : 'oldPassword',
									fieldLabel : '旧密码',
									inputType:'password'
								}, {
									name : 'newPassword',
									fieldLabel : '新密码',
									inputType:'password',
//									emptyText : '长度在6到15个字符之间',
									minLength:6,
									maxLength:15
								}, {
									name : 'repassword',
									fieldLabel : '再次输入密码',
									inputType:'password',
//									emptyText : '请再输入一遍',
									validator:function(value){
										if(value!=this.ownerCt.form.findField('newPassword').getValue()){
											return '新密码两次输入不一致';
										}
										return true;
									}
								}],

						buttons : [{
							text : '确定',
							handler : function() {
								changePasswordForm.form.submit({
									url:'changePasswordAction.action',
									success:function(form,action){
										Ext.Msg.alert('消息','更改成功');
									},
									failure:function(form,action){
										if(action.failureType!=Ext.form.Action.CLIENT_INVALID	)
											Ext.Msg.alert('消息',action.result.msg);
									}
								});
								// Ext.Ajax.request({
								// url:'changePasswordAction',
								// method:'POST',
								// param:'password='+this.ownerCt.form.findField('password').value,
								// callback:function(){}
								//												
								// });
							}
						}, {
							text : '取消',
							handler : function() {
								win.hide();
							}
						}]
					});
			var win = new Ext.Window({
						title : '更改密码',
						resizable : false,
						modal : true,
						plain : true,
						width:230,
						closeAction : 'hide',
//						buttonAlign : 'center',
						items : [changePasswordForm]
					});
			win.show();
			win.center();
			/*增加该面板的激活事件*/
			Ext.getCmp('panels-ChangePassword').on('activate',function(){
				changePasswordForm.form.reset();
				win.show();
			});
		});